package BlogService.beans;

import java.util.Set;

import BlogService.beans.Article;

public class Categorie implements IBeans {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5479412845055700616L;
	
	
	private int idCategorie;
	private String nom;
	public Set<Article> articlesCategorie;

	public Categorie() {
	
	}


	public void setIdCategorie(int pIdCategorie) {
		this.idCategorie = pIdCategorie;
	}

	public int getIdCategorie() {
		return this.idCategorie;
	}

	public void setNom(String pNom) {
		this.nom = pNom;
	}

	public String getNom() {
		return this.nom;
	}
	
	
	

	/**
	 * @return the articlesCategorie
	 */
	public Set<Article> getArticlesCategorie() {
		return articlesCategorie;
	}


	/**
	 * @param articlesCategorie the articlesCategorie to set
	 */
	public void setArticlesCategorie(Set<Article> articlesCategorie) {
		this.articlesCategorie = articlesCategorie;
	}


	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Categorie [idCategorie=" + idCategorie + ", nom=" + nom
				+ ", articlesCategorie=" + articlesCategorie + "]";
	}
}